import request from '@/utils/request'
const api_name = '/admin/edu/subject'

export default{

  getNestedTreeList() {
    return request({// 封装axios
      url: `${api_name}/list`,
      method: 'get'
    })
  },

  deleteSubjectById(id) {
    return request({
      url: `${api_name}/${id}`,
      method: 'delete'
    })
  },

  saveLevel(subject) {
    return request({
      url: `${api_name}/save-level`,
      method: 'post',
      data: subject
    })
  }

}
